<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2021/7/15
  Time: 0:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<script type="text/javascript">



    // es6

    var use={
        name:"闫文超",
        age:4,
        long:"喜欢女孩子"
    };
    console.log("初始"+use.age+use.age+use.long);
    console.log(use)

    var s = JSON.stringify(use);

    console.log("吧对象转换为json的"+s);



    var parse = JSON.parse(s);
    console.log("吧json转换为对象的"+parse.age+parse.age+parse.long);
    console.log(parse)





</script>







</body>
</html>